<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Orders</title>
</head>
<body>
    <table>
        <tr>
            <th>ID</th>
            <th>Client</th>
            <th>Amount</th>
            <th>Actions</th>
        </tr>
        <c:forEach items="${orders}" var="order">
	        <tr>
	            <td>${order.id}</td>
	            <td>${order.clientName}</td>
	            <td>${order.amount}</td>
	            <td><a href="${order.id}">View</a> |
	                <a href="${order.id}/edit">Edit</a> |
	                <a href="${order.id}/deleteConfirm">Delete</a></td>
	        </tr>
        </c:forEach>
    </table>    	
    <a href="new">Create a new order</a>
</body>
</html>
	